{include file='yxworker/w_head'}
{include file='yxworker/w_headsearch'}
        <script type="text/javascript" src="{$_G['URL']['WORKER_CSS']}js/jquery.flexslider-min.js"></script>

        <div class="index_content">
            <div class="s_banner">
                {if $_G['companyname'] !='飞驰软件' && $_G['companyname'] !='金策软件' && empty($theme['USERCOMPANYNAME'])}
                <div id="home_slider" class="flexslider">
                    <ul class="slides">
                        <li>
                            <img src="{$_G['URL']['WORKER_CSS']}images/home_17.png" alt="" />
                        </li>
                        
                        <li>
                            <img src="{$_G['URL']['WORKER_CSS']}images/home_17.png" alt="" />
                        </li>
                        
                        <li>
                            <img src="{$_G['URL']['WORKER_CSS']}images/home_17.png" alt="" />
                        </li>
                        
                        <li>
                            <img src="{$_G['URL']['WORKER_CSS']}images/home_17.png" alt="" />
                        </li>
                    </ul>
                </div>
            {/if}
                <!-- bannerJS -->
                <script type="text/javascript">
                    $(function () {
                        $('#home_slider').flexslider({
                            animation : 'slide',
                            controlNav : true,
                            directionNav : true,
                            animationLoop : true,
                            slideshow : true,
                            useCSS : false,
                            slideshowSpeed: 3000, // 自动播放速度毫秒
                        });
                        
                    });
                </script>
            </div>
{if $myworker['level'] == '1'}
    <div class="s_items">
        <div class="s_title">
            <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
            数据统计【{$_P['m']}】
        </div>
            <table class="s_table" style="font-size: 14px;">
                <thead>
                    <tr>
                        <td style="text-align: right;">参与人数：</td>
                        <td style="text-align: left; color: #3980c3">{$fanscount}</td>
                        <td style="text-align: right;">付款金额：</td>
                        <td style="text-align: left; color: #ab17cb">{$ordercount}元</td>
                    </tr>
                </thead>
                <thead>
                    <tr>
                        <td style="text-align: right;">浏&nbsp;&nbsp;览&nbsp;&nbsp;量：</td>
                        <td style="text-align: left; color: #52af52">{$theme['scansum']}</td>
                        {if $system['fenxiao']==1 || $commcount != 0}
                        <td style="text-align: right;">红包发放：</td>
                        <td style="text-align: left; color: #d44946">{$commcount}元</td>
                        {else}
                        <td style="text-align: right;">手续费：</td>
                        <td style="text-align: left; color: #d44946">{php echo sprintf("%.2f",$ordercount*$shouxu2);}元</td>
                        {/if}
                    </tr>
                </thead>
                <thead>
                    <tr>
                        <td style="text-align: right;">转&nbsp;&nbsp;发&nbsp;&nbsp;量：</td>
                        <td style="text-align: left; color: #50b8d9">{$theme['forward']}</td>
                        {if $theme['chongzhi']>0 }
                            <td style="text-align: right;">充&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;值：&nbsp;</td>
                            <td style="text-align: left; color: #eabc2b">{$theme['chongzhi']}元</td>
                        {else}
                            <td style="text-align: right;">已&nbsp;&nbsp;提&nbsp;&nbsp;现：</td>
                            <td style="text-align: left; color: #eabc2b">{$theme['chongzhi']}元</td>
                        {/if}
                    </tr>
                </thead>
                <thead>
                    <tr>
                        <td style="text-align: right;">线上/线下：</td>
                        <td style="text-align: left; color: #263e88"><span style="color: #b11a7b">{$recordcount}</span> / {$recordxxcount}</td>

                        <td style="text-align: right;">实际到帐：</td>
                        <td style="text-align: left; color: #188041">{php echo sprintf("%.2f",$ordercount*$shouxu+$commcount+$theme['chongzhi']);}元</td>
                    </tr>
                </thead>
            </table>

    </div>
{/if}
            <!-- <div class="s_items">
                <div class="s_title">
                    <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                    联盟管理
                </div>
                <div class="t_menu ui-flex">
                    <a href="javascript:;">
                        <dl class="bg_1">
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/s_menu.png"></dt>
                            <dd>联盟链接</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl class="bg_2">
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/s_menu-02.png"></dt>
                            <dd>我的定单</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl class="bg_3">
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/s_menu-03.png"></dt>
                            <dd>全部定单</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl class="bg_4">
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/s_menu-04.png"></dt>
                            <dd>联盟定单核销</dd>
                        </dl>
                    </a>
                </div>
                
                <div class="l_menus ui-flex ui-flex-wrap">
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_34.png"></dt>
                            <dd>联盟数据</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_36.png"></dt>
                            <dd>核销人员设置</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_38.png"></dt>
                            <dd>定单导出</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_40.png"></dt>
                            <dd>推广海报</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_42.png"></dt>
                            <dd>特殊定单录入</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_44.png"></dt>
                            <dd>联盟页设置</dd>
                        </dl>
                    </a>
                </div>
            </div> -->

            <div class="s_items">
                <div class="s_title">
                    <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                    活动管理
                </div>
                <div class="t_menu ui-flex">
                    <a href="/{php echo createMobileUrl('index',array('themeid'=>$themeid));}">
                        <dl class="bg_1">
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/s_menu.png"></dt>
                            <dd>活动链接</dd>
                        </dl>
                    </a>
                    <a href="/{php echo createMobileUrl('w_order',array("themeid"=>$themeid,"op"=>"my"));}">
                        <dl class="bg_2">
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/s_menu-02.png"></dt>
                            <dd>我的定单</dd>
                        </dl>
                    </a>
                    <a href="/{php echo createMobileUrl('w_order',array('themeid'=>$themeid,'op'=>'my','show'=>'kezi','scan'=>13));}">
                        <dl class="bg_3">
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/s_menu-03.png"></dt>
                            <dd>准客户</dd>
                        </dl>
                    </a>
                    <a href="/{php echo createMobileUrl('w_myreport',array("themeid"=>$themeid,"op"=>"all"));}">
                        <dl class="bg_4">
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/s_menu-04.png"></dt>
                            <dd>日报表</dd>
                        </dl>
                    </a>
                </div>
                
                <div class="l_menus ui-flex ui-flex-wrap">
                    {if $myworker['level'] == '1'}
                    <a href="/{php echo createMobileUrl('w_tongji',array("themeid"=>$themeid));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_36.png"></dt>
                            <dd>数据统计</dd>
                        </dl>
                    </a>
                    {/if}
                    {if $system['ruanjian']==3 && $config['showshop']==0 }
                    {if $myworker['level'] == '1' || ($myworker['level'] == '2' && $config['isshoprank']==1)}
                    <a href="/{php echo createMobileUrl('w_shoprank',array('themeid'=>$themeid));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_34.png"></dt>
                            <dd>联盟排名</dd>
                        </dl>
                    </a>
                    {/if}
                    {/if}
                    {if $myworker['level'] != '3' || ($myworker['level'] == '3' && $config['isrank']==1)}
                    <a href="/{php echo createMobileUrl('w_grouprank',array('themeid'=>$themeid));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_34.png"></dt>
                            <dd>团队排名</dd>
                        </dl>
                    </a>
                    <a href="/{php echo createMobileUrl('w_workerrank',array('themeid'=>$themeid));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_34.png"></dt>
                            <dd>个人排名</dd>
                        </dl>
                    </a>
                    {/if}

                    {if $myworker['level'] != '3'}
                    <a href="/{php echo createMobileUrl('w_report',array('themeid'=>$themeid));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_38.png"></dt>
                            <dd>活动日报</dd>
                        </dl>
                    </a>
                    <a href="/{php echo createMobileUrl('w_grouprank',array('themeid'=>$themeid,'op'=>'report','uid'=>$myworker['uid']));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_40.png"></dt>
                            <dd>个人日报</dd>
                        </dl>
                    </a>
                    <a href="/{php echo createMobileUrl('w_order',array("themeid"=>$themeid));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_53.png"></dt>
                            <dd>全部定单</dd>
                        </dl>
                    </a>
                    <a href="/{php echo createMobileUrl('w_group',array("themeid"=>$themeid));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_63.png"></dt>
                            <dd>全部团</dd>
                        </dl>
                    </a>
                    {/if}
                    {if $ruanjian !=1 && $ruanjian !=2}
                    <a href="/{php echo createMobileUrl('w_group',array("themeid"=>$themeid,"op"=>"my"));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_55.png"></dt>
                            <dd>我的团长</dd>
                        </dl>
                    </a>
                    {if $config['isrank']==1}
                    <a href="/{php echo createMobileUrl('w_tuanrank',array("themeid"=>$themeid));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_55.png"></dt>
                            <dd>团长排名</dd>
                        </dl>
                    </a>
                    {/if}
                    {/if}
                    {if $config['isrank']==1}
                    <a href="/{php echo createMobileUrl('w_fansrank',array("themeid"=>$themeid,"paixu"=>'cj'));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_55.png"></dt>
                            <dd>粉丝排名</dd>
                        </dl>
                    </a>
                    {/if}
                    {if $myworker['level'] == '1' || $config['isxianxia']==1 || $config['isshowxianxia']==1}
                    <a href="/{php echo createMobileUrl('w_input',array("themeid"=>$themeid));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_42.png"></dt>
                            <dd>线下定单录入</dd>
                        </dl>
                    </a>
                    {/if}

                    {if $myworker['level'] == '1' || ($myworker['level'] == '2' && $config['isshoprank']==1)}
                    <a href="/{php echo createMobileUrl('w_daping',array("themeid"=>$themeid));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_59.png"></dt>
                            <dd>实时投屏</dd>
                        </dl>
                    </a>
                    {/if}


                    <a href="javascript:;" onclick="copyText()">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_59.png"></dt>
                            <dd>短网址</dd>
                        </dl>
                    </a>
                    {if $config['ishexiao']==1}
                    <a href="javascript:vodi(0)" class="getBtn">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_59.png"></dt>
                            <dd>核销码</dd>
                        </dl>
                    </a>
                    {/if}
                    <!-- <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_59.png"></dt>
                            <dd>分销记录</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_59.png"></dt>
                            <dd>交易记录</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_59.png"></dt>
                            <dd>粉丝管理</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_40.png"></dt>
                            <dd>推广海报</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_38.png"></dt>
                            <dd>定单导出</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_59.png"></dt>
                            <dd>费用提现</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_59.png"></dt>
                            <dd>短信提醒</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_59.png"></dt>
                            <dd>客户变身</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_59.png"></dt>
                            <dd>背景音乐</dd>
                        </dl>
                    </a> -->
                </div>
            </div>

            {if $myworker['level'] == '1'}
            <div class="s_items">
                <div class="s_title">
                    <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                    活动设置
                </div>
                
                <div class="l_menus ui-flex ui-flex-wrap">
                    <a href="/{php echo createMobileUrl('w_setbase',array("themeid"=>$themeid));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_44.png"></dt>
                            <dd>基本设置</dd>
                        </dl>
                    </a>
                    <a href="/{php echo createMobileUrl('w_setxuni',array("themeid"=>$themeid));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_44.png"></dt>
                            <dd>虚拟数据</dd>
                        </dl>
                    </a>
                    <a href="/{php echo createMobileUrl('w_setmobile',array("themeid"=>$themeid));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_44.png"></dt>
                            <dd>手机端设置</dd>
                        </dl>
                    </a>
                    <a href="/{php echo createMobileUrl('w_setother',array("themeid"=>$themeid));}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_44.png"></dt>
                            <dd>其它设置</dd>
                        </dl>
                    </a>
                    <!-- <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_44.png"></dt>
                            <dd>分销设置</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_44.png"></dt>
                            <dd>裂变红包</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_44.png"></dt>
                            <dd>分享设置</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_44.png"></dt>
                            <dd>表单设置</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_44.png"></dt>
                            <dd>按扭文字</dd>
                        </dl>
                    </a> -->
                </div>
            </div>
            {/if}

            <div class="s_items">
                <div class="s_title">
                    <img src="{$_G['URL']['WORKER_CSS']}images/title_17.png">
                    系统设置
                </div>
                
                <div class="l_menus ui-flex ui-flex-wrap">
                    <!-- <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_69.png"></dt>
                            <dd>联盟商管理</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_66.png"></dt>
                            <dd>员工管理</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_63.png"></dt>
                            <dd>团队设置</dd>
                        </dl>
                    </a> -->
                    <!-- <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_65.png"></dt>
                            <dd>微信名</dd>
                        </dl>
                    </a> -->
                    <!-- <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_44.png"></dt>
                            <dd>个人设置</dd>
                        </dl>
                    </a>
                    <a href="javascript:;">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_68.png"></dt>
                            <dd>使用帮助</dd>
                        </dl>
                    </a> -->
                    <a href="{php echo !empty($theme['USERURL'])?$theme['USERURL']:$system['s']['yixuanurl'];}">
                        <dl>
                            <dt><img src="{$_G['URL']['WORKER_CSS']}images/index_65.png"></dt>
                            <dd>{php echo !empty($theme['USERCOMPANYNAME'])?$theme['USERCOMPANYNAME']:$_G['companyname'];}客服</dd>
                        </dl>
                    </a>
                </div>
            </div>

            {if $_G['companyname'] !='飞驰软件' && $_G['companyname'] !='金策软件' && empty($theme['USERCOMPANYNAME'])}
            <div class="i_footer">
                <ul class="ui-flex ui-jcenter">
                    <li><a href="javascript:;">拼团</a></li>
                    <li><a href="javascript:;">异业联盟</a></li>
                    <li><a href="javascript:;">微团</a></li>
                    <li><a href="javascript:;">微分销</a></li>
                    <li><a href="javascript:;">微客</a></li>
                    <li><a href="javascript:;">我要代言</a></li>
                    <li><a href="javascript:;">砍价</a></li>
                    <li><a href="javascript:;">投票</a></li>
                </ul>
                <p>
                    <span>客服电话：400 017 1899</span>
                    <span>Powered by Yixuan</span>
                    <span>@2015-2019</span>
                </p>
            </div>
            {/if}

        </div>

    <style type="text/css">
       .wrapper {position: relative;}
       #input {position: absolute;top: 0;left: 0;opacity: 0;z-index: -10;}
    </style>

    <style type="text/css">
        .altTit { width:4.7rem; position:relative; z-index:101; height:.84rem; background:#7094ff; margin:0 auto; border-radius:.15rem; text-align:center; line-height:.84rem; color:#fff; font-size:.32rem;}
        .altBox { display:none; position:fixed; z-index:101; left:50%; top:50%; margin-left:-2.79rem; margin-top:-2.78rem;}
        .ewmBar { width:5.58rem; height:5.56rem; box-sizing:border-box; padding-top:.9rem; margin-top:-.4rem; border-radius:.15rem; background:#fff; box-sizing:border-box;}
        #screen{ display:none; position:fixed; left:0; top:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:100;}
        .ewmImg { width:3.94rem; box-sizing:border-box; padding:.16rem; border:1px solid #a6d5ff; border-radius:.08rem; margin:0 auto 0;}
    </style>
    <div id="screen"></div>
    <div class="altBox">
        <div class="altTit">请长按保存，由客户扫码核销</div>
        <div class="ewmBar">
            <div class="ewmImg"><img src="{$_G['URL']['QRURLNEW']}{php echo urlencode($_G['siteroot'].createMobileUrl("myorder",array('themeid'=>$themeid,'type'=>3,'cid'=>$_G['member']['uid'])));}"></div>
        </div>
    </div>

<div class="wrapper">
   <textarea id="input">易宣软件</textarea>
</div>
<script type="text/javascript">

    $('.getBtn').click(function(){
        $('.altBox').fadeIn();
        $('#screen').fadeIn();
    })
    $('#screen').click(function(){
        $('.altBox').fadeOut();
        $('#screen').fadeOut();
    })
    function copyText() {
      var text = '活动详情请点击：{$workerurl}';
      var input = document.getElementById("input");
      input.value = text; // 修改文本框的内容
      input.select(); // 选中文本
      document.execCommand("copy"); // 执行浏览器复制命令
      alert("您的专属短网址复制成功，可用于朋友圈评论、群发等链接文本式推广");
    }

</script>
{include file='yxworker/w_foot'}

